<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script>
        function year(years) {
            var flag = false;
            if (years % 4 == 0 && years % 100 != 0 || years % 400 == 0) {
                return years;
            } else
                return flag;
        }
        console.log(year(2009));
    </script>
</head>

<body>

</body>

</html>